<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        body {
        background-image: url("./bg1.jpg");
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
        overflow: hidden;
        }

        form {
            background: white;
            height: 500px;
            width: 500px;
            margin: 0 auto;
            margin-top: 200px;
            text-align: center;
            display: none;

        }

        .box{
            width: 100px;
            height: 50px;
            position: absolute;
            top: 50px;
            left: 1400px;

        }

        .login{
            width: 100px;
            height: 50px;
            font-size: 18px;
            border-color: white;
        }

        .box_regist {

            width: 500px;
            height: 50px;
            position: relative;
            top:140px;
            text-align: center;
            margin: 10px 5px;


    }

        .input_regist{
            width: 300px;
            height: 40px;
    }

        .regist{
            width: 300px;
            height: 40px;
            background: #58baff;
            position: relative;
            left: 20px;
            margin-top: 10px;

        }

        .cancel{
            width: 20px;
            width: 20px;
            position: relative;
            top: 5px;
            left: 450px;
        }
    </style>
    <script type="text/javascript" src="../jquery/jquery-1.12.4.min.js"></script>
</head>

<body>

<form  id="form" action="">
    <div class="cancel"><input type="button" value="取消"></div>
    <div class="box_regist">账号：<input type="text" class="input_regist" ></div>
    <div class="box_regist">密码：<input type="password" class="input_regist"></div>
    <div class="box_regist"><input class="regist" type="submit" value="立即注册" ></div>
</form>

<div class="box">
    <input class="login" type="button" value="立即注册">
</div>




<script type="text/javascript">
    $('.login').click(function () {
        $('#form').show();

    });

    $('.cancel').click(function () {
        $('#form').hide();

    })
</script>
</body>
</html>